package com.zut.dao;

import com.zut.entity.Teacher;

import java.util.List;
import java.util.Map;

public interface TeacherDao {
    Teacher findTeacherByTidAndPassword(String tid, String password);

    List<Map<String, Object>> findTeachersByClassId(String classId);

    String findMaxTid();

    void addTeacher(Teacher teacher);

    List<Map<String, Object>> findAllTeachers();

    List<Map<String, Object>> findTeachersLikeName(String s);

    List<Map<String, Object>> findTeachersByCname(String s);

    void updateTeachCourse(String tid, String cid);

    int deleteByTid(String tid);

    void updateTeacherPassword(String id, String newPwd);

    void updateTeacherPhoneNum(String id, String newPhoneNum);
}
